package models

import "github.com/jinzhu/gorm"

type Meon struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);"`
}

func Update(meon Meon) error {
	err := DB.Model(&meon).Updates(&meon).Error
	return err
}
func Del(meon Meon) error {
	err := DB.Delete(meon).Error
	return err
}
